OPC-UA Embedded Server SDK  2.1.0
Data Type Definitions

Data Structures

struct  UA_UTF8_string_t
 Represents a UTF8 string for translation of human readable text. More...
 
struct  UA_Byte_string_t
 Represents a variable length byte string. More...
 
union  UA_Value_t
 The valid pointer types for a read or write operation by the stack on host maintained variables (node value attributes) via read and write callbacks. More...
 
struct  UA_Configuration_BuildInfo_t
 The configuration structure for the UA Server BuildInfo object. More...
 
struct  UA_Configuration_TcpBinary_t
 The configuration structure for the UA Server TCP Binary Layer. More...
 
struct  UA_Configuration_SecureConversation_t
 The configuration structure for the UA Server Secure Conversation Layer. More...
 
struct  UA_Configuration_Security_t
 The configuration structure for the UA Server Security Policies. More...
 
struct  UA_Configuration_Intervals_t
 The configuration structure for the Server Intervals. More...
 
struct  UA_Configuration_Services_t
 The configuration structure for the UA Server Services. More...
 
struct  UA_Configuration_NamespaceArray_t
 The configuration structure for the Namespace Array. More...
 
struct  UA_Configuration_AddressSpace_t
 The configuration structure for the UA Server Address Space. More...
 
struct  UA_Configuration_CertManagement_t
 The configuration structure for the UA Server Certificate Management. More...
 
struct  UA_Configuration_Locales_t
 The configuration structure for the UA Server Locale Handling. More...
 
struct  UA_Configuration_ProfileArray_t
 The configuration structure for the UA Server Profile Array. More...
 
struct  UA_Configuration_OperationLimits_t
 The configuration structure for the UA Server Operation Limits object. More...
 
struct  UA_Configuration_ServerCapabilities_t
 The configuration structure for the UA Server Capabilities object. More...
 
struct  UA_Configuration_Internals_t
 The configuration structure for the UA Server miscellaneous internals. More...
 
struct  UA_Configuration_Diagnostics_t
 The configuration structure for the UA Server diagnostics. More...
 
struct  UA_Configuration_Filters_t
 The configuration structure for the UA Server Filters. More...
 
struct  UA_Configuration_t
 The configuration structure for the UA Server. More...
 
struct  UA_NodeId_Config_t
 Optionally specifies a non-opaque node id for an address space node. More...
 
struct  UA_Base_t
 A configuration structure for all address space nodes. More...
 
struct  UA_File_t
 A configuration structure for Method address space nodes. More...
 
struct  UA_Method_t
 A configuration structure for File address space nodes. More...
 
struct  UA_BaseDataVariable_t
 A configuration structure for BaseDataVariable address space nodes. More...
 
struct  UA_DataItem_t
 A configuration structure for DataItem address space nodes. More...
 
struct  UA_Range_t
 Range data type. More...
 
struct  UA_EUInformation_t
 Engineering Units configuration (see user manual for description) More...
 
struct  UA_AnalogItem_t
 A configuration structure for AnalogItem address space nodes. More...
 
struct  UA_TwoStateDiscrete_t
 A configuration structure for TwoStateDiscrete address space nodes. More...
 
struct  UA_MultiStateDiscrete_t
 A configuration structure for MultiStateDiscrete address space nodes. More...
 

Macros

#define UA_USER_TOKEN_POLICY_ANONYMOUS_TOKEN_SECURITY_POLICY_NONE   (1<<0)
 Bit definitions for the UA Server Security Configuration bitmaps. More...
 
#define UA_USER_TOKEN_POLICY_USERNAME_PASSWORD_TOKEN_SECURITY_POLICY_NONE   (1<<1)
 
#define UA_USER_TOKEN_POLICY_USERNAME_PASSWORD_TOKEN_SECURITY_POLICY_Basic128Rsa15   (1<<2)
 
#define UA_USER_TOKEN_POLICY_USERNAME_PASSWORD_TOKEN_SECURITY_POLICY_Basic256   (1<<3)
 
#define UA_USER_TOKEN_POLICY_USERNAME_PASSWORD_TOKEN_SECURITY_POLICY_Basic256Sha256   (1<<4)
 
#define UA_USER_TOKEN_POLICY_X509v3_CERTIFICATE_TOKEN_SECURITY_POLICY_NONE   (1<<5)
 
#define UA_USER_TOKEN_POLICY_X509v3_CERTIFICATE_TOKEN_SECURITY_POLICY_Basic128Rsa15   (1<<6)
 
#define UA_USER_TOKEN_POLICY_X509v3_CERTIFICATE_TOKEN_SECURITY_POLICY_Basic256   (1<<7)
 
#define UA_USER_TOKEN_POLICY_X509v3_CERTIFICATE_TOKEN_SECURITY_POLICY_Basic256Sha256   (1<<8)
 
#define OB_SUPPRESS_CERTIFICATE_EXPIRED   (1<<0)
 Bit definitions for a bitmap that allows you to modify the behaviour of the OPC UA Secure Channel Client Certificate handling. More...
 
#define OB_SUPPRESS_HOSTNAME_INVALID   (1<<1)
 
#define OB_SUPPRESS_REVOCATION_STATUS_UNKNOWN   (1<<2)
 
#define OB_CHECK_REVOCATION_STATUS_ONLINE   (1<<3)
 
#define OB_CHECK_REVOCATION_STATUS_OFFLINE   (1<<4)
 
#define OB_USE_DEFAULT_OPTIONS   (1<<5)
 
#define OB_TRUST_ALL_CLIENTS_WHEN_TRUST_LIST_IS_EMPTY   (1U<<31)
 
#define OB_DO_NOT_SAVE_REJECTED_CERTIFICATES   (1U<<30)
 

Typedefs

typedef uint32_t UA_Status_t
 Represents an OPC-UA status code. More...
 
typedef UA_Byte_string_t UA_Xml_element_t
 A structure representing XMLElement values. More...
 
typedef UA_Byte_string_t UA_Var_string_t
 A structure representing UTF8 string values. More...
 
typedef uint8_t * UA_GUID_t
 Represents a GUID as a pointer to an array of 16 bytes. More...
 
typedef UA_Base_t UA_Folder_t
 A configuration structure for Folder address space nodes. More...
 
typedef UA_Folder_t UA_View_t
 A configuration structure for View address space nodes. More...
 

Enumerations

enum  UA_Value_type_t {
  UA_TYPE_Invalid = 0,
  UA_TYPE_Boolean = 1,
  UA_TYPE_SByte = 2,
  UA_TYPE_Byte = 3,
  UA_TYPE_Int16 = 4,
  UA_TYPE_UInt16 = 5,
  UA_TYPE_Int32 = 6,
  UA_TYPE_UInt32 = 7,
  UA_TYPE_Int64 = 8,
  UA_TYPE_UInt64 = 9,
  UA_TYPE_Float = 10,
  UA_TYPE_Double = 11,
  UA_TYPE_String = 12,
  UA_TYPE_DateTime = 13,
  UA_TYPE_Guid = 14,
  UA_TYPE_ByteString = 15,
  UA_TYPE_XmlElement = 16,
  UA_TYPE_NodeId = 17,
  UA_TYPE_ExpandedNodeId = 18,
  UA_TYPE_StatusCode = 19,
  UA_TYPE_QualifiedName = 20,
  UA_TYPE_LocalizedText = 21,
  UA_TYPE_ExtensionObject = 22,
  UA_TYPE_DataValue = 23,
  UA_TYPE_Variant = 24,
  UA_TYPE_Range = 884,
  UA_TYPE_EUInformation = 887
}
 
enum  UA_Server_state_t {
  opcua_server_state_running = 0,
  opcua_server_state_failed = 1,
  opcua_server_state_no_configuration = 2,
  opcua_server_state_suspended = 3,
  opcua_server_state_shutdown = 4,
  opcua_server_state_test = 5,
  opcua_server_state_communication_fault = 6,
  opcua_server_state_unknown = 7,
  end
}
 Enumeration of server state. More...
 
enum  UA_Log_severity_t {
  UA_LOG_SEVERITY_ERROR = 0,
  UA_LOG_SEVERITY_INFO = 1
}
 Enumeration of log message severity. More...
 
enum  UA_Log_payload_t {
  UA_LOG_PAYLOAD_NONE = 0,
  UA_LOG_PAYLOAD_CSTRING = 1,
  UA_LOG_PAYLOAD_BINARY = 2
}
 Enumeration of log message data payload type. More...
 
enum  UA_Mon_Item_Callback_Operation_t {
  UA_MON_ITEM_CREATED = 0,
  UA_MON_ITEM_MODIFIED = 1,
  UA_MON_ITEM_DESTROYED = 2
}
 Enumeration of monitored item callabck operation type. More...
 
enum  UA_NodeId_Identifier_Type_t {
  opcua_node_encoding_numeric = 0x02,
  opcua_node_encoding_string = 0x03,
  opcua_node_encoding_guid = 0x04,
  opcua_node_encoding_bytestring = 0x05
}
 Node id encoding types for an address space node. More...
 
enum  UA_Asym_Cipher_t {
  UA_ASYM_CIPHER_INVALID = 0,
  UA_ASYM_CIPHER_RSA_PKCS1_v1_5 = 1,
  UA_ASYM_CIPHER_RSA_OAEP = 2
}
 Enumeration of asymmetric cipher types. More...
 
enum  UA_Sym_Cipher_t {
  UA_SYM_CIPHER_INVALID = 0,
  UA_SYM_CIPHER_AES_128_CBC = 1,
  UA_SYM_CIPHER_AES_256_CBC = 2
}
 Enumeration of symmetric cipher types. More...
 
enum  UA_Digest_t {
  UA_DIGEST_INVALID = 0,
  UA_DIGEST_SHA1 = 1,
  UA_DIGEST_SHA256 = 2
}
 Enumeration of message digest types. More...
 
enum  UA_Security_policy_t {
  SECURITY_POLICY_INVALID,
  SECURITY_POLICY_NONE,
  SECURITY_POLICY_BASIC128RSA15,
  SECURITY_POLICY_BASIC256,
  SECURITY_POLICY_BASIC256SHA256
}
 Enumeration of message security policies. More...
 
enum  UA_Certificate_Type_t {
  UA_CERT_TYPE_INVALID = 0,
  UA_CERT_TYPE_CLIENT_APPLICATION = 1,
  UA_CERT_TYPE_SERVER_APPLICATION = 2,
  UA_CERT_TYPE_APPLICATION_CA = 3,
  UA_CERT_TYPE_USER = 4,
  UA_CERT_TYPE_USER_CA = 5
}
 Enumeration of X509 certificate types. More...
 

Detailed Description

Macro Definition Documentation

#define UA_USER_TOKEN_POLICY_ANONYMOUS_TOKEN_SECURITY_POLICY_NONE   (1<<0)

Bit definitions for the UA Server Security Configuration bitmaps.

User Token Anonymous - Token Security Policy None

Definition at line 371 of file ua_types.h.

#define UA_USER_TOKEN_POLICY_USERNAME_PASSWORD_TOKEN_SECURITY_POLICY_NONE   (1<<1)

User Token Username / Password - Token Security Policy None

Definition at line 374 of file ua_types.h.

#define UA_USER_TOKEN_POLICY_USERNAME_PASSWORD_TOKEN_SECURITY_POLICY_Basic128Rsa15   (1<<2)

User Token Username / Password - Token Security Policy Basic128Rsa15

Definition at line 376 of file ua_types.h.

#define UA_USER_TOKEN_POLICY_USERNAME_PASSWORD_TOKEN_SECURITY_POLICY_Basic256   (1<<3)

User Token Username / Password - Token Security Policy Basic256

Definition at line 378 of file ua_types.h.

#define UA_USER_TOKEN_POLICY_USERNAME_PASSWORD_TOKEN_SECURITY_POLICY_Basic256Sha256   (1<<4)

User Token Username / Password - Token Security Policy Basic256Sha256

Definition at line 380 of file ua_types.h.

#define UA_USER_TOKEN_POLICY_X509v3_CERTIFICATE_TOKEN_SECURITY_POLICY_NONE   (1<<5)

User Token X509v3 Certificate - Token Security Policy None

Definition at line 383 of file ua_types.h.

#define UA_USER_TOKEN_POLICY_X509v3_CERTIFICATE_TOKEN_SECURITY_POLICY_Basic128Rsa15   (1<<6)

User Token X509v3 Certificate - Token Security Policy Basic128Rsa15

Definition at line 385 of file ua_types.h.

#define UA_USER_TOKEN_POLICY_X509v3_CERTIFICATE_TOKEN_SECURITY_POLICY_Basic256   (1<<7)

User Token X509v3 Certificate - Token Security Policy Basic256

Definition at line 387 of file ua_types.h.

#define UA_USER_TOKEN_POLICY_X509v3_CERTIFICATE_TOKEN_SECURITY_POLICY_Basic256Sha256   (1<<8)

User Token X509v3 Certificate - Token Security Policy Basic256Sha256

Definition at line 389 of file ua_types.h.

#define OB_SUPPRESS_CERTIFICATE_EXPIRED   (1<<0)

Bit definitions for a bitmap that allows you to modify the behaviour of the OPC UA Secure Channel Client Certificate handling.

Option Bit - Accept expired certificates

Definition at line 1043 of file ua_types.h.

#define OB_SUPPRESS_HOSTNAME_INVALID   (1<<1)

Option Bit - Do not validate the application hostname

Definition at line 1045 of file ua_types.h.

#define OB_SUPPRESS_REVOCATION_STATUS_UNKNOWN   (1<<2)

Option Bit - If checking certificate CRLs do not reject a certificate if a CRL for the Issuer cannot be found

Definition at line 1048 of file ua_types.h.

#define OB_CHECK_REVOCATION_STATUS_ONLINE   (1<<3)

Option Bit - Look for CRLs online (not currently supported)

Definition at line 1050 of file ua_types.h.

#define OB_CHECK_REVOCATION_STATUS_OFFLINE   (1<<4)

Option Bit - Look for CRLs locally (typically in the local filesystem

Definition at line 1052 of file ua_types.h.

#define OB_USE_DEFAULT_OPTIONS   (1<<5)

Option Bit - Use default options for the PKI provider

Definition at line 1054 of file ua_types.h.

#define OB_TRUST_ALL_CLIENTS_WHEN_TRUST_LIST_IS_EMPTY   (1U<<31)

Option Bit - Trust all client certificates if the trust list is empty

Definition at line 1056 of file ua_types.h.

#define OB_DO_NOT_SAVE_REJECTED_CERTIFICATES   (1U<<30)

Option Bit - Do not save rejected certificates

Definition at line 1058 of file ua_types.h.

Typedef Documentation

typedef uint32_t UA_Status_t

Represents an OPC-UA status code.

OPC-UA status codes are defined in opcua_status_codes.h

Definition at line 168 of file ua_types.h.

A structure representing XMLElement values.

Definition at line 203 of file ua_types.h.

A structure representing UTF8 string values.

Definition at line 209 of file ua_types.h.

typedef uint8_t* UA_GUID_t

Represents a GUID as a pointer to an array of 16 bytes.

As an example, GUID “72962B91-FA75-4AE6-8D28-B404DC7DAF63” should be encoded as follows:

Data1 Data2 Data3 Data4 91 2B 96 72 75 FA E6 4A 8D 28 B4 04 DC 7D AF 63

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Definition at line 222 of file ua_types.h.

A configuration structure for Folder address space nodes.

Definition at line 751 of file ua_types.h.

A configuration structure for View address space nodes.

Definition at line 757 of file ua_types.h.

Enumeration Type Documentation

Enumeration of value data types that can be stored in a variable node

Enumerator
UA_TYPE_Invalid 

Invalid type

UA_TYPE_Boolean 

Boolean

UA_TYPE_SByte 

signed byte

UA_TYPE_Byte 

unsigned byte

UA_TYPE_Int16 

signed 16 bit integer

UA_TYPE_UInt16 

unsigned 16 bit integer

UA_TYPE_Int32 

signed 32 bit integer

UA_TYPE_UInt32 

unsigned 32 bit integer

UA_TYPE_Int64 

signed 64 bit integer

UA_TYPE_UInt64 

unsigned 64 bit integer

UA_TYPE_Float 

32 bit single precision floating point

UA_TYPE_Double 

64 bit double precision floating point

UA_TYPE_String 

UTF8 string

UA_TYPE_DateTime 

64 bit signed integer containing date and time

UA_TYPE_Guid 

16 byte long array of unsigned bytes

UA_TYPE_ByteString 

variable length array of unsigned bytes

UA_TYPE_XmlElement 

UTF8 string containing XML

UA_TYPE_NodeId 

Not supported for application

UA_TYPE_ExpandedNodeId 

Not supported for application

UA_TYPE_StatusCode 

Not supported for application

UA_TYPE_QualifiedName 

Not supported for application

UA_TYPE_LocalizedText 

Not supported for application

UA_TYPE_ExtensionObject 

Not supported for application

UA_TYPE_DataValue 

Not supported for application

UA_TYPE_Variant 

Not supported for application

UA_TYPE_Range 

Not supported for application

UA_TYPE_EUInformation 

Not supported for application

Definition at line 72 of file ua_types.h.

73 {
74  UA_TYPE_Invalid = 0,
75  UA_TYPE_Boolean = 1,
76  UA_TYPE_SByte = 2,
77  UA_TYPE_Byte = 3,
78  UA_TYPE_Int16 = 4,
79  UA_TYPE_UInt16 = 5,
80  UA_TYPE_Int32 = 6,
81  UA_TYPE_UInt32 = 7,
82  UA_TYPE_Int64 = 8,
83  UA_TYPE_UInt64 = 9,
84  UA_TYPE_Float = 10,
85  UA_TYPE_Double = 11,
86  UA_TYPE_String = 12,
87  UA_TYPE_DateTime = 13,
88  UA_TYPE_Guid = 14,
89  UA_TYPE_ByteString = 15,
90  UA_TYPE_XmlElement = 16,
91  UA_TYPE_NodeId = 17,
93  UA_TYPE_StatusCode = 19,
97  UA_TYPE_DataValue = 23,
98  UA_TYPE_Variant = 24,
99  UA_TYPE_Range = 884,
100  UA_TYPE_EUInformation = 887

Enumeration of server state.

API functions exist to read and write server state. When shutting down the server, the shutdown takes 60 seconds to allow clients an opportunity to disconnect.

Definition at line 111 of file ua_types.h.

112 {
113  opcua_server_state_running = 0,
114  opcua_server_state_failed = 1,
115  opcua_server_state_no_configuration = 2,
116  opcua_server_state_suspended = 3,
117  opcua_server_state_shutdown = 4,
118  opcua_server_state_test = 5,
119  opcua_server_state_communication_fault = 6,
120  opcua_server_state_unknown = 7,
121  end

Enumeration of log message severity.

UAServer_Log_callback() flags the severity of the log message with this type.

Enumerator
UA_LOG_SEVERITY_ERROR 

Error

UA_LOG_SEVERITY_INFO 

Info

Definition at line 130 of file ua_types.h.

131 {

Enumeration of log message data payload type.

UAServer_Log_callback() describes the format of the optional log data payload with this type.

Enumerator
UA_LOG_PAYLOAD_NONE 

No data payload

UA_LOG_PAYLOAD_CSTRING 

String payload

UA_LOG_PAYLOAD_BINARY 

Binary payload

Definition at line 143 of file ua_types.h.

144 {
145  UA_LOG_PAYLOAD_NONE = 0,

Enumeration of monitored item callabck operation type.

UAServer_Callback_monitored_item() uses this type.

Enumerator
UA_MON_ITEM_CREATED 

A monitored item was created

UA_MON_ITEM_MODIFIED 

A monitored item was modified

UA_MON_ITEM_DESTROYED 

A monitored item was destroyed

Definition at line 156 of file ua_types.h.

Node id encoding types for an address space node.

Enumerator
opcua_node_encoding_numeric 

Numeric

opcua_node_encoding_string 

String

opcua_node_encoding_guid 

GUID

opcua_node_encoding_bytestring 

Opaque

Definition at line 662 of file ua_types.h.

Enumeration of asymmetric cipher types.

Enumerator
UA_ASYM_CIPHER_INVALID 

Invalid

UA_ASYM_CIPHER_RSA_PKCS1_v1_5 

RSA-1_5

UA_ASYM_CIPHER_RSA_OAEP 

RSA OAEP (SHA1)

Definition at line 980 of file ua_types.h.

Enumeration of symmetric cipher types.

Enumerator
UA_SYM_CIPHER_INVALID 

invalid

UA_SYM_CIPHER_AES_128_CBC 

AES 128 CBC

UA_SYM_CIPHER_AES_256_CBC 

AES 256 CBC

Definition at line 991 of file ua_types.h.

Enumeration of message digest types.

Enumerator
UA_DIGEST_INVALID 

Invalid

UA_DIGEST_SHA1 

SHA1

UA_DIGEST_SHA256 

SHA256

Definition at line 1002 of file ua_types.h.

1003 {
1004  UA_DIGEST_INVALID = 0,
1005  UA_DIGEST_SHA1 = 1,
1006  UA_DIGEST_SHA256 = 2
1007 } UA_Digest_t;

Enumeration of message security policies.

Enumerator
SECURITY_POLICY_INVALID 

Invalid

SECURITY_POLICY_NONE 

No security

SECURITY_POLICY_BASIC128RSA15 

SecurityPolicyBasic128Rsa15

SECURITY_POLICY_BASIC256 

SecurityPolicyBasic256

SECURITY_POLICY_BASIC256SHA256 

SecurityPolicyBasic256Sha256

Definition at line 1013 of file ua_types.h.

Enumeration of X509 certificate types.

Enumerator
UA_CERT_TYPE_INVALID 

Invalid

UA_CERT_TYPE_CLIENT_APPLICATION 

Client Application

UA_CERT_TYPE_SERVER_APPLICATION 

Server Application

UA_CERT_TYPE_APPLICATION_CA 

CA Certificate for an Application

UA_CERT_TYPE_USER 

User

UA_CERT_TYPE_USER_CA 

CA Certificate for a User

Definition at line 1026 of file ua_types.h.